package com.cn.design.state;

/**
 * @author: zhangyiting
 * @description: 下班休息状态
 * @createDate: Created in 2022/7/5 23:16
 * @version: 1.0
 */
public class RestState extends State {
    @Override
    public void writeProgram(Work w) {
        System.err.println("当前时间: 下班回家了。"+w.getHour()+"点");
    }
}

